package com.hjli.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hjli.model.ArchiveInfo;
import com.hjli.model.ArticleInfo;
import com.hjli.model.ArticleInfoStr;
import com.hjli.tool.TemplateTool;

public interface ArticleInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleInfo record);

    int insertSelective(ArticleInfo record);

    ArticleInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleInfo record);

    int updateByPrimaryKey(ArticleInfo record);
    
    List<ArticleInfo> articleInfoAll();
    
    int sumPageNum();
    
    List<ArticleInfo> pageList(@Param("startNum")int startNum,@Param("everyPageNum")int everyPageNum);
  
    ArticleInfoStr findByUrl(@Param("url")String url);
    
    String findUrlById(@Param("id")int id);
    
    List<ArticleInfo> findByDate(@Param("date")String date);
    
    int updateViewNum(@Param("id")int id);
    
}